package com.wongoing.aop;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;

public class ServiceLogAdvice implements AfterReturningAdvice{

	public void afterReturning(Object returnValue, Method m, Object[] args,
			Object target) throws Throwable {
		System.out.println("--------------------后置通知 TestAdvice begin---------------------");
		System.out.println("returnValue = " + returnValue);
		System.out.println("Method = " + m.getName());
		for(int i = 0; i < args.length; i++) {
			System.out.println("args[" + i + "] = " + args[i]);
		}
		System.out.println("Target = " + target);
		System.out.println("--------------------后置通知 TestAdvice end---------------------");
		
	}

}
